import request from "@/util/req";

type bannerType<T = undefined> = {
    code:string,
    message:string,
    data:[
        {
            link:T,
            alt:T,
            img:T,
            bannerid:string,
            flag:boolean
        }
    ]
}

export function showData(){
    return request.get<any,bannerType<string>>("banner/list")
}

type DEType = {
    code:string,
    message:string,
    data:listType
}
export function detailData(proid:string){
    return request.get<any,DEType>(`pro/detail/${proid}`)
}